//SamXIAO
#include <bits/stdc++.h>
using namespace std;
#define PI 3.1415926
#define   SQUARE(x) ((x)*(x))
//double SQUARE(double x) { return x*x;}

int f[102];

void w1()
{
	int a, b, c,  n;
	double ans = 0;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		scanf("%d", &a);
		if      (a<=18) f[0]++;
		else if (a<=35) f[1]++;
		else if (a<=60) f[2]++;
		else            f[3]++;
	}
	for(int i=0; i<4; i++){
		 printf("%.2lf%%\n", f[i]*100.0/double(n));
	}

}

int main()
{
	w1();
  return 0;
}
